'use strict';

function get_letter_interval(number_a, number_b) {
  let result=[];
  if(number_a<number_b){
    for(let num=number_a;num<=number_b;num++){
      result.push(String.fromCodePoint(num+96));
    }
  }
  else if(number_a>number_b){
    for(let num=number_a;num>=number_b;num--){
      result.push(String.fromCodePoint(num+96));
    }
  }
  else{
    result.push(String.fromCodePoint(number_a+96));
  }
  console.log(result);
  return result;
}

module.exports = get_letter_interval;
get_letter_interval(5,5);
